package com.lh.service;

import com.lh.bean.Candidate;
import com.lh.bean.Voter;
import com.lh.exception.MyException;

import java.util.List;

public interface VoteService {
    //投票
    Integer insertVote(String voterJwcode, String candidateJwcode, String voterName) throws MyException;
    //获取所有候选人
    List<Candidate> getCandidates(String VoterJwcode);
    //获取某个候选人的被投票记录
    List<Voter> getVotesByCandidate(String candidateJwcode) throws MyException;
    //重置投票
    boolean resetVote() throws MyException;
}
